package cn.xiyan.baas.utils;

/**
 * @author: ruiyanglee
 * @date: 2020-08-19 10:25
 * @description: String Util
 */
public class StringUtil {

    /**
     * @description:
     * @Param: [str]
     * @return: boolean
     * @author: ryli
     * @time: 2020/8/19 10:27
     */
    public static boolean isNull(String str) {
        if (str != null && str.trim().length() > 0) {
            return false;
        }
        return true;
    }

    /**
     * @description:
     * @Param: [str]
     * @return: boolean
     * @author: ryli
     * @time: 2020/8/19 10:27
     */
    public static boolean isNotNull(String str) {
        if (str != null && str.trim().length() > 0) {
            return true;
        }
        return false;
    }
}
